package com.myw.mail.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户会员对象 t_user_member
 * 
 * @author myw
 * @date 2025-07-10
 */
@Data
@TableName("t_user_member")
public class UserMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 等级ID */
    private Long levelId;

    /** 当前成长值 */
    @Excel(name = "当前成长值")
    private Long currentPoints;

    /** 会员有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会员有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationDate;

    /** 会员专享价（商品表冗余） */
    @Excel(name = "会员专享价", readConverterExp = "商=品表冗余")
    private BigDecimal memberPrice;


}
